package com.chinairi.mall.controller;


import com.chinairi.common.utils.ResponseUtil;
import com.chinairi.mall.controller.viewobject.ServiceTypeClassVO;
import com.chinairi.mall.model.ServiceType;
import com.chinairi.mall.service.IServiceTypeClassService;
import com.chinairi.mall.service.IServiceTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.chinairi.common.controller.BaseController;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 服务分类表 前端控制器
 * </p>
 *
 * @author Webgasd
 * @since 2020-09-16
 */
@RestController
@RequestMapping("/service-type-class")
public class ServiceTypeClassController extends BaseController {
    @Autowired
    private IServiceTypeClassService iServiceTypeClassService;

    /**
     * 服务小类查询
     * @param serviceType 服务大类编号
     * @throws IOException 异常
     */
    @GetMapping("/getServiceTypeClassListByServiceType")
    public void getServiceTypeClassListByServiceType(String serviceType) throws IOException {
        ServiceTypeClassVO serviceTypeClassVO = iServiceTypeClassService.getServiceTypeClassListByServiceType(serviceType);
        ResponseUtil.showMessage("success","查询成功",serviceTypeClassVO);
    }
}
